using System;
using Roslyn.Compilers.CSharp;

namespace BITS.PreCompiler.CSharp.Syntax.Extensions
{
    /// <summary>
    /// Extension methods for property nodes.
    /// </summary>
    public static partial class PropertyExtension
    {
        public static Property AsInterfaceProperty(this Property @this, Interface parent = null)
        {
            return new InterfaceProperty(
                @this.GetSyntaxNode(), parent);
        }
    }
}